home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Games / xrobots / bitmaps.h < prev    next >
C/C++ Source or Header  |  1995-05-03  |  8KB  |  182 lines

  1. /*
  2.  * bitmaps.h  --  xrobots
  3.  * 
  4.  * Copyright 1989 Brian Warkentine
  5.  * 
  6.  * Permission to use, copy, modify, distribute, and sell this software and its
  7.  * documentation for any purpose is hereby granted without fee, provided that
  8.  * the above copyright notice appear in all copies and that both that
  9.  * copyright notice and this permission notice appear in supporting
  10.  * documentation, and that the author's name not be used in advertising or
  11.  * publicity pertaining to distribution of the software without specific,
  12.  * written prior permission.  The author makes no representations about the
  13.  * suitability of this software for any purpose.  It is provided "as is"
  14.  * without express or implied warranty.
  15.  * 
  16.  * THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 
  17.  * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL THE 
  18.  * AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 
  19.  * DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN 
  20.  * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 
  21.  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  22.  * 
  23.  * The author's current employer has no connection with this software, as it
  24.  * was written before being employed at Sun.  The following address is for 
  25.  * contacting the author only and does not imply any responsibility on the 
  26.  * behalf of Sun Microsystems.
  27.  * 
  28.  * Contact the author at:
  29.  *     Brian Warkentine  (brianw@Sun.COM)
  30.  *     Sun Microsystems
  31.  *     2550 Garcia Avenue
  32.  *     Mountain View, Ca 94043-1100
  33.  *
  34.  */
  35.  
  36. /*----------------------------------------------------------------------*/
  37. /* playfield images */
  38.  
  39. #define Image_width 20
  40. #define Image_height 20
  41.  
  42. #define Image_player_width 20
  43. #define Image_player_height 20
  44. static char Image_player_bits[] = {
  45.    0xc0, 0x1f, 0x00, 0x30, 0x60, 0x00, 0x08, 0x80, 0x00, 0x04, 0x00, 0x01,
  46.    0x42, 0x10, 0x02, 0xe2, 0x38, 0x02, 0x41, 0x10, 0x04, 0x01, 0x00, 0x04,
  47.    0x01, 0x00, 0x04, 0x11, 0x40, 0x04, 0x19, 0xc0, 0x04, 0x1d, 0xc0, 0x05,
  48.    0x31, 0x60, 0x04, 0xe2, 0x38, 0x02, 0xc2, 0x1f, 0x02, 0x84, 0x0f, 0x01,
  49.    0x08, 0x80, 0x00, 0x30, 0x60, 0x00, 0xc0, 0x1f, 0x00, 0x00, 0x00, 0x00};
  50.  
  51. #define Image_player_dead_width 20
  52. #define Image_player_dead_height 20
  53. static char Image_player_dead_bits[] = {
  54.    0xc0, 0x1f, 0x00, 0x30, 0x60, 0x00, 0x08, 0x80, 0x00, 0x04, 0x00, 0x01,
  55.    0x12, 0x45, 0x02, 0xa2, 0x28, 0x02, 0x41, 0x10, 0x04, 0xa1, 0x28, 0x04,
  56.    0x11, 0x45, 0x04, 0x01, 0x00, 0x04, 0x01, 0x00, 0x04, 0x01, 0x00, 0x04,
  57.    0x01, 0x00, 0x04, 0x02, 0x00, 0x02, 0xf2, 0x7f, 0x02, 0x04, 0x00, 0x01,
  58.    0x08, 0x80, 0x00, 0x30, 0x60, 0x00, 0xc0, 0x1f, 0x00, 0x00, 0x00, 0x00};
  59.  
  60. #define Image_robot_width 20
  61. #define Image_robot_height 20
  62. static char Image_robot_bits[] = {
  63.    0x00, 0x00, 0x00, 0xe0, 0x3f, 0x00, 0x10, 0x40, 0x00, 0xe8, 0xff, 0x00,
  64.    0x04, 0x38, 0x01, 0xfa, 0xff, 0x03, 0x42, 0x15, 0x02, 0xaa, 0xaa, 0x02,
  65.    0x4a, 0x95, 0x02, 0x8a, 0x8a, 0x02, 0x1a, 0xc5, 0x02, 0x2a, 0xa2, 0x02,
  66.    0x2a, 0xa0, 0x02, 0x2e, 0xa2, 0x03, 0x20, 0x22, 0x00, 0x20, 0x22, 0x00,
  67.    0x20, 0x22, 0x00, 0x20, 0x22, 0x00, 0xe0, 0x3f, 0x00, 0x00, 0x00, 0x00};
  68.  
  69. #ifdef HEAP_STYLE_1
  70. /* your choice of how you like your dead robots to look...*/
  71.  
  72. #define Image_heap_width 20
  73. #define Image_heap_height 20
  74. static char Image_heap_bits[] = {
  75.    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  76.    0xe0, 0xff, 0x01, 0x20, 0x00, 0x03, 0xa0, 0xaa, 0x06, 0xff, 0x57, 0x0d,
  77.    0x01, 0xe8, 0x0a, 0x55, 0xf5, 0x0a, 0xa9, 0xfa, 0x0e, 0x55, 0xfd, 0x0a,
  78.    0xbf, 0xfe, 0x0e, 0x55, 0xfd, 0x0a, 0xab, 0x7a, 0x0e, 0x55, 0x75, 0x0a,
  79.    0xff, 0xea, 0x06, 0xe0, 0x5f, 0x03, 0xa0, 0xaa, 0x01, 0xe0, 0xff, 0x00};
  80.  
  81. #else
  82.  
  83. #define Image_heap_width 20
  84. #define Image_heap_height 20
  85. static char Image_heap_bits[] = {
  86.    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  87.    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  88.    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x1e, 0x00,
  89.    0x00, 0x35, 0x00, 0x80, 0x5b, 0x00, 0xc0, 0xae, 0x00, 0xe0, 0xf5, 0x00,
  90.    0xb0, 0xaa, 0x01, 0xe8, 0x6f, 0x03, 0x7c, 0xfe, 0x03, 0x00, 0x00, 0x00};
  91.  
  92. #endif
  93.  
  94. /*----------------------------------------------------------------------*/
  95. /* cursors */
  96.  
  97. #define cursor_width 16
  98. #define cursor_height 16
  99.  
  100. #define down_width 16
  101. #define down_height 16
  102. static char down_bits[] = {
  103.    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x01,
  104.    0x80, 0x01, 0x80, 0x01, 0x80, 0x01, 0x80, 0x01, 0x80, 0x01, 0xb0, 0x0d,
  105.    0xe0, 0x07, 0xc0, 0x03, 0x80, 0x01, 0x00, 0x00};
  106.  
  107. #define down_left_width 16
  108. #define down_left_height 16
  109. static char down_left_bits[] = {
  110.    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  111.    0x00, 0x01, 0x80, 0x03, 0xc0, 0x01, 0xe6, 0x00, 0x76, 0x00, 0x3e, 0x00,
  112.    0x1e, 0x00, 0x7e, 0x00, 0x7e, 0x00, 0x00, 0x00};
  113.  
  114. #define down_right_width 16
  115. #define down_right_height 16
  116. static char down_right_bits[] = {
  117.    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  118.    0x80, 0x00, 0xc0, 0x01, 0x80, 0x03, 0x00, 0x67, 0x00, 0x6e, 0x00, 0x7c,
  119.    0x00, 0x78, 0x00, 0x7e, 0x00, 0x7e, 0x00, 0x00};
  120.  
  121. #define left_width 16
  122. #define left_height 16
  123. static char left_bits[] = {
  124.    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x18, 0x00,
  125.    0x0c, 0x00, 0xfe, 0x07, 0xfe, 0x07, 0x0c, 0x00, 0x18, 0x00, 0x10, 0x00,
  126.    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
  127.  
  128. #define right_width 16
  129. #define right_height 16
  130. static char right_bits[] = {
  131.    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x18,
  132.    0x00, 0x30, 0xe0, 0x7f, 0xe0, 0x7f, 0x00, 0x30, 0x00, 0x18, 0x00, 0x08,
  133.    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
  134.  
  135. #define up_width 16
  136. #define up_height 16
  137. static char up_bits[] = {
  138.    0x00, 0x00, 0x80, 0x01, 0xc0, 0x03, 0xe0, 0x07, 0xb0, 0x0d, 0x80, 0x01,
  139.    0x80, 0x01, 0x80, 0x01, 0x80, 0x01, 0x80, 0x01, 0x80, 0x01, 0x00, 0x00,
  140.    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
  141.  
  142. #define up_right_width 16
  143. #define up_right_height 16
  144. static char up_right_bits[] = {
  145.    0x00, 0x00, 0x00, 0x7e, 0x00, 0x7e, 0x00, 0x78, 0x00, 0x7c, 0x00, 0x6e,
  146.    0x00, 0x67, 0x80, 0x03, 0xc0, 0x01, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00,
  147.    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
  148.  
  149.  
  150. #define up_left_width 16
  151. #define up_left_height 16
  152. static char up_left_bits[] = {
  153.    0x00, 0x00, 0x7e, 0x00, 0x7e, 0x00, 0x1e, 0x00, 0x3e, 0x00, 0x76, 0x00,
  154.    0xe6, 0x00, 0xc0, 0x01, 0x80, 0x03, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00,
  155.    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
  156.  
  157.  
  158. #define stay_width 16
  159. #define stay_height 16
  160. static char stay_bits[] = {
  161.    0x80, 0x00, 0x80, 0x00, 0x80, 0x00, 0xe0, 0x03, 0xc0, 0x01, 0x80, 0x10,
  162.    0x08, 0x18, 0x18, 0xfc, 0x3f, 0x18, 0x18, 0x10, 0x08, 0x01, 0x80, 0x03,
  163.    0xc0, 0x07, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01};
  164.  
  165.  
  166. #define cant_go_width 16
  167. #define cant_go_height 16
  168. static char cant_go_bits[] = {
  169.    0x00, 0x00, 0xc0, 0x07, 0x20, 0x08, 0x90, 0x13, 0x50, 0x12, 0x20, 0x12,
  170.    0x00, 0x09, 0x80, 0x04, 0x80, 0x02, 0x80, 0x02, 0x00, 0x01, 0x00, 0x01,
  171.    0x80, 0x02, 0x80, 0x02, 0x00, 0x01, 0x00, 0x00};
  172.  
  173.  
  174. #define thumbs_down_width 16
  175. #define thumbs_down_height 16
  176. #define thumbs_down_x_hot 7
  177. #define thumbs_down_y_hot 15
  178. static char thumbs_down_bits[] = {
  179.    0x00, 0x00, 0x00, 0x00, 0xe0, 0x3f, 0x1e, 0x40, 0x00, 0x78, 0x00, 0x80,
  180.    0x00, 0x78, 0x00, 0x80, 0x00, 0x7c, 0x0e, 0x40, 0x30, 0x3e, 0x40, 0x03,
  181.    0x40, 0x01, 0x40, 0x01, 0x40, 0x01, 0xc0, 0x00};
  182.